<!DOCTYPE html>
<html>


<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>加诚汽修管理系统 - 登录</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="../img/title.ico">
    <link href="../css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <link href="../css/animate.min.css" rel="stylesheet">
    <link href="../css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="../plugins/layui/css/layui.css" rel="stylesheet">
    <link rel="stylesheet" href="../css/less/loginNew.css">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->
    <script>if (window.top !== window.self) {
        window.top.location = window.location;
    }</script>
</head>

<body class="gray-bg">

<div class="middle-box text-center loginscreen  animated fadeInDown">
    <div>
        <div>
            <h1 class="logo-name">LY+</h1>

        </div>
        <h3>欢迎使用加诚汽修管理系统</h3>

        <form class="m-t layui-form" role="form">
            <div class="form-group">
                <input name="account" id="account" type="text" class="form-control" placeholder="用户名"
                       lay-verify="required">
            </div>
            <div class="form-group">
                <input name="password" id="password" type="password" class="form-control" placeholder="密码"
                       lay-verify="required">
            </div>
<!--            <div class="form-group">-->
<!--                <input name="code" type="text" id="code" placeholder="请输入验证码" class="form-control" lay-verify="required">-->
<!--                <img id="img" onclick="setUrl(this)"/>-->
<!--            </div>-->
            <a lay-submit lay-filter="btn" id="aa" class="btn btn-primary block full-width">登 录</a>
            <p class="text-muted text-center"><a href="login.html#">
               <!-- <small>忘记密码了？</small>-->
            </a> <!--| <a href="register.html">注册一个新账号</a>-->
            </p>
        </form>
    </div>
</div>
<div id="zzsc"></div>
</body>
<script src="../plugins/jquery-1.9.1.min.js"></script>
<script src="../plugins/layui/layui.js"></script>
<script src="../plugins/bootstrap/bootstrap.min.js"></script>
<script src="../plugins/bootstrap-table/bootstrap-table.js"></script>
<script src="../plugins/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script src="../plugins/chosen/chosen.jquery.js"></script>
<script src="../js/comFun.js"></script>
<script src="../plugins/zzsc.js"></script>
<script>
    function extracted() {
        layui.use(['form'], function () {
            var form = layui.form;
            form.on('submit(btn)', function (data) {
                console.log(data);
                login(data.field);
            });
        });
    }
    $(function () {
        extracted();
        $("#img").attr("src", getRootPath().projectName + "/validatecode/");
        $(document).on('keydown',function (e) {
            if(e.keyCode==13){
                $("#aa").click();
            }

        });
    });

</script>

</html>
